wayland: Unref the keyboard focus surface when losing keyboard focus
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 10 Feb 2011 15:59:30 +0000 (10:59 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 10 Feb 2011 16:02:15 +0000 (11:02 -0500)
gdk/wayland/gdkdevice-wayland.c

index 8abdb09249366c3111fe95eea3fbc94a64bfcbcd..6f4237cbeb2d64f5092460bfc4dfec432481b633 100644 (file)
@@ -555,7 +555,7 @@ input_handle_keyboard_focus(void *data,
       event->focus_change.in = FALSE;
       gdk_event_set_device (event, device->keyboard);
 
-      g_object_unref(device->pointer_focus);
+      g_object_unref(device->keyboard_focus);
       device->keyboard_focus = NULL;
 
       GDK_NOTE (EVENTS,